﻿@using QDT.Core
@model QDT.Core.Projects.RepaymentScheme
    <div class="ui-box">
        <div class="ui-box-hd">
            <h3 class="ui-box-title">还款计划</h3>
        </div>
        <div class="ui-table-container">
            <table class="ui-table ui-table-noborder">
                <thead>
                    <tr>
                        <th>还款日</th>
                        <th>还款金额(元)</th>
                        <th>还款类型</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var m in Model.Stages)
                    {
                        <tr>
                            <td>@m.Time.ToString("yyyy-MM-dd")</td>
                            <td>@m.Ammount.ToMoney()</td>
                            <td>
                                @switch (m.RepayType)
                                {
                                    case 1:
                                        <span>利息</span>
                                        break;
                                    case 2:
                                        <span>本金</span>
                                        break;
                                    case 3:
                                        <span>本金和利息</span>
                                        break;
                                }
                            </td>
                        </tr>     
                    }
                </tbody>
            </table>
        </div>
    </div>
